package com.chenliang.tk.config;

import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Options;
import tk.mybatis.mapper.annotation.RegisterMapper;

import java.util.List;


@RegisterMapper // 表示该接口被继承时 会自动注册
public interface ClInsertListMapper<T> {


    @InsertProvider(
            type = ClInsertListProvider.class,//sql工厂类,构建批量插入的sql
            method = "dynamicSQL"  // 动态sql
    )
    @Options(
            useGeneratedKeys = false 
    )
    int insertList(List<? extends T> var1);
}
